Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SDK-3870] refactor: send react-hooks agent as channel param #1459

Merged
merged 5 commits into from
Oct 19, 2023

Conversation

owenpearson
Copy link
Member

@owenpearson owenpearson commented Oct 4, 2023

Sends the react-hooks agent as a channel param (workaround since typically the ably client used by react hooks already starts connecting before the hooks wrapper has an opportunity to add the agent as a transport param).

This branch also contains a change to make the client more selective about which options provided to channels.get will be interpreted as requiring reattachment. More precisely, the channel params and modes will now be shallow compared to existing params and modes, and only if they differ will the call the chnanels.get throw an error (provided of course that the channel is already attached or attaching).

@owenpearson owenpearson requested a review from ttypic October 4, 2023 15:58
@github-actions github-actions bot temporarily deployed to staging/pull/1459/features October 4, 2023 15:58 Inactive
@owenpearson owenpearson force-pushed the react-hooks-agent-channel-param branch from 6a4c2e4 to 2261c52 Compare October 4, 2023 15:58
@github-actions github-actions bot temporarily deployed to staging/pull/1459/features October 4, 2023 15:59 Inactive
@owenpearson owenpearson force-pushed the react-hooks-agent-channel-param branch from 2261c52 to a6465ef Compare October 4, 2023 15:59
@github-actions github-actions bot temporarily deployed to staging/pull/1459/features October 4, 2023 16:00 Inactive
@owenpearson owenpearson removed the request for review from ttypic October 4, 2023 16:01
@owenpearson owenpearson marked this pull request as draft October 4, 2023 16:01
@github-actions github-actions bot temporarily deployed to staging/pull/1459/bundle-report October 4, 2023 16:01 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1459/typedoc October 4, 2023 16:01 Inactive
@owenpearson owenpearson force-pushed the react-hooks-agent-channel-param branch from a6465ef to 695e5bb Compare October 4, 2023 16:08
@github-actions github-actions bot temporarily deployed to staging/pull/1459/features October 4, 2023 16:08 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1459/bundle-report October 4, 2023 16:10 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1459/typedoc October 4, 2023 16:11 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1459/features October 5, 2023 11:37 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1459/bundle-report October 5, 2023 11:38 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1459/typedoc October 5, 2023 11:39 Inactive
@owenpearson owenpearson force-pushed the react-hooks-agent-channel-param branch from d871de0 to 5f14a5c Compare October 5, 2023 11:39
@github-actions github-actions bot temporarily deployed to staging/pull/1459/features October 5, 2023 11:39 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1459/bundle-report October 5, 2023 11:41 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1459/typedoc October 5, 2023 11:42 Inactive
This internal change makes the client more selective about which options
provided to `channels.get` will be interpreted as requiring
reattachment. More precisely, the channel params and modes will now be
shallow compared to existing params and modes, and only if they differ
will the call the `chnanels.get` throw an error (, provided of course
that the channel is already attached or attaching).
@owenpearson owenpearson changed the title refactor: send react-hooks agent as channel param [SDK-3870] refactor: send react-hooks agent as channel param Oct 19, 2023
@owenpearson owenpearson merged commit a35b65c into main Oct 19, 2023
11 checks passed
@owenpearson owenpearson deleted the react-hooks-agent-channel-param branch October 19, 2023 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants